Steve and I volley improvements README.contrib. Moves astyle settings out
authorrobertlipe <robertlipe@gmail.com>
Sat, 8 Dec 2012 17:01:28 +0000 (17:01 +0000)
committerrobertlipe <robertlipe@gmail.com>
Sat, 8 Dec 2012 17:01:28 +0000 (17:01 +0000)
of doc and into astylerc.

gpsbabel/README.contrib
gpsbabel/astylerc [new file with mode: 0644]

index cc706cb8d756f40b40c6dab713c97b4cc488bfdf..fda753114cd9f23f2ebc751115699a2859309879 100644 (file)
@@ -33,35 +33,19 @@ prefer:
        <2spaces>}
        }
 
-The corresponding astyle settings for this are:
-
-       # One True Brace Style - function curlies are in column zero for easy
-       # selection in vi.
-       --style=1tbs 
-
-       # Two column indents.
-       -s2 
-
-       # Even single line ifs and elses get braces.
-       --add-brackets  
-
-       # Insert space after 'if', 'for', 'while'.
-       --pad-header 
-
-       # Remove extraneous spaces in parens.
-       --unpad-paren
-
-       # Prefer char* foo to char *foo.
-       --align-pointer=type
-       --align-reference=type
+Formatting can be done with astyle using the included style file
+astylerc with the command "astyle --options=astylerc {source files}".
+astyle is available at http://astyle.sourceforge.net/
 
+The corresponding astyle settings for this are provided in our source
+tree in the file named 'astylerc'
 
 
 Submitting Patches
 ------------------
 
 If you are creating a new target you should submit patches (use 
-"cvs diff -uN" to create patches) to the following files:
+"svn diff" to create patches) to the following files:
 * Yourcode.c and/or Yourcode.h - this is the code required to do your
   conversions and any support files that your code requires.
 * vecs.c - an updated vecs.c file implementing your conversion code into
diff --git a/gpsbabel/astylerc b/gpsbabel/astylerc
new file mode 100644 (file)
index 0000000..e9f038c
--- /dev/null
@@ -0,0 +1,19 @@
+# One True Brace Style - function curlies are in column zero for easy
+# selection in vi.
+--style=1tbs
+
+# Two column indents.
+-s2
+
+# Even single line ifs and elses get braces.
+--add-brackets
+
+# Insert space after 'if', 'for', 'while'.
+--pad-header
+
+# Remove extraneous spaces in parens.
+--unpad-paren
+
+# Prefer char* foo to char *foo.
+--align-pointer=type
+--align-reference=type